<script src="../media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="../media/system/js/core.js" type="text/javascript"></script>
<form action="index.php?top=page&option=com_frcenter" method="post" name="adminFormSearch" id="adminFormSearch">
<!-- LEFT -->
 <?php echo $this->loadTemplate('search','default') ?>
<input type="hidden" name="task" value="search" />
 <!-- END LEFT -->
</form>

<form action="index.php?top=page&option=com_frcenter&task=club" method="post" name="adminForm" id="adminForm">

 <!-- CONTENT -->
 <div id="jm-content">
    <div class="cc title">
        <div class="id"><?php echo $this->info_ocba->OCBA_CODE; ?></div>
        <div class="cc-title">
            <p class="top"><?php echo $this->info_ocba->OCBA_KANA; ?></p>
            <p class="bot"><?php echo $this->info_ocba->OCBA_NAME; ?><span class="float-right">【<?php echo $this->info_ocba->OCBA_SHOR; ?>】</span></p>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="menu-cc">
        <ul id="nav">
        
        <?php 
            foreach(bgData::getMenuDetailCenter() as $key=>$item){
                $acctive = 'normal';
                if(JRequest::getVar('task') == $key){
                    $acctive = 'current';
                }
         ?>
            <li class="<?php echo $acctive; ?>"><a href="index.php?top=page&option=com_frcenter&task=<?php echo $key; ?>&id=<?php echo $this->info_ocba->OCBA_CODE; ?>"><?php echo $item; ?></a></li>
          <?php } ?>
            
        </ul>
    </div>
    
    <div id="content">
    <h3 class="h_title"><label class="jm_name">海洋クラブ情報</label><!--<button href="#" class="float-right" id="icon">アイコン説明</button>--></h3>
    <div class="content">
    <?php if($this->rows != null){ 
                foreach($this->rows as $value){    
    ?>
    
        <div class="cc">
            <h2>
                <span class="id-cc"><?php echo $value->OCBA_CODE; ?></span>
               	<span class="id-cc"><?php echo $value->OCBA_NAME; ?></span>	
                <span class="float-right" style="margin-top: 3px;">
                    <?php if ($value->OCBA_EFLAG == 1)
                        echo '<label>休部中</label>';
                    ?>
                    <button href="index.php?top=page&option=com_frclub&task=detail&id=<?php echo $value->OCBA_CODE; ?>">海洋クラブ情報へ</button>
                </span>
            </h2>
            <table cellspacing="0" cellpadding="0" width="700" border="0">
                <tbody>
                    <tr>
                        <td width="150" style="vertical-align:top"><?php if($value->OCBA_POST!=null) echo '〒'.$value->OCBA_POST; ?></td>
                        <td width="340" colspan="2"><?php echo $value->OCBA_ADD1;echo "<br/>".$value->OCBA_ADD2; ?></td>
                        <td>【クラブ種別】</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>Tel：<?php echo $value->OCBA_TEL; ?></td>
                        <td>Fax：<?php echo $value->OCBA_FAX; ?></td>
                        <td width="180">海洋センター（艇庫無し）</td>
                    </tr>
                </tbody>
            </table>
            
        </div>
    <?php
            }
    ?>
    
        <table style="width: 100%;">
            <tfoot>
    			<tr>
    				<td colspan="15" style="text-align: center;">
    				    <?php echo $this->paginationClub->getListFooter(); ?>
                    </td>
    			</tr>
    		</tfoot>
      </table>
    
    <?php
     }else{ 
    ?>
        <div>
            <p align="center">データは見つかりませんでした</p>
        </div>
    <?php
        } 
    ?>
    </div>
    
    
        <input type="hidden" name="task" value="club" /> 
        <input type="hidden" name="id" value="<?php echo $this->info_ocba->OCBA_CODE; ?>" />    
        
 </div>
                
 </div>
 <!-- END CONTENT -->
 
</form>
<script>
 Joomla.submitbutton = function(task){
    if(task == 'search'){
        Joomla.submitform(task, document.getElementById('adminFormSearch'));
        return false;
    }
 }
 </script>       
                 